-
Notifications
You must be signed in to change notification settings - Fork 81
[confgenerator] Add file offset storage to Otel Logging receivers.
#2166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dfb9619 to
6bae68d
Compare
|
Any thoughts on |
bookmarking to Otel Logging receivers.file offset storage to Otel Logging receivers.
a9b9bcd to
3805ae5
Compare
3bec296 to
c0b1e2e
Compare
af65ac7 to
606ed8c
Compare
| if len(matchingLogs) == 0 { | ||
| t.Errorf(`Expected to find at least one instance of "first line" log in the backend. Found %d instances.`, len(matchingLogs)) | ||
| } | ||
| if len(matchingLogs) >= 2 { | ||
| t.Errorf(`Expected to find only one instance of "first line" log in the backend. Found %d instances.`, len(matchingLogs)) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: these can be combined into a single if len(matchingLogs) != 1 check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for completeness, this is the result of running locally the last iteration of this test (with the != 1 check) locally (without the file_storage update) :
=== NAME TestFileOffset/debian-cloud:debian-11/otel_logging
agents.go:1029: Instance Log: [redacted]
main_test.go:6008: Expected to find exactly one instance of "first line" log in the backend. Found 2 instances.
--- FAIL: TestFileOffset (0.00s)
--- FAIL: TestFileOffset/debian-cloud:debian-11 (0.00s)
--- PASS: TestFileOffset/debian-cloud:debian-11/default (305.37s)
--- FAIL: TestFileOffset/debian-cloud:debian-11/otel_logging (306.46s)
FAIL
go.sum
Outdated
| github.com/GoogleCloudPlatform/google-guest-agent v0.0.0-20250924181420-23412fbd6228/go.mod h1:31SvkAl6ORtir1odRpTl92XpTtn52GnBAHPtCKDSePo= | ||
| github.com/GoogleCloudPlatform/opentelemetry-operations-collector/integration_test/gce-testing-internal v0.0.0-20260119145159-eff68fc7b8ef h1:v2hZ/3wkAB/9TvEqqE3zjlVsqozs4rzZ4zqvW/9YPLQ= | ||
| github.com/GoogleCloudPlatform/opentelemetry-operations-collector/integration_test/gce-testing-internal v0.0.0-20260119145159-eff68fc7b8ef/go.mod h1:hmqK+hsg2z+Xo/Yz16sNxb6TZX+q0KxKsrgYzdpV0P8= | ||
| github.com/GoogleCloudPlatform/opentelemetry-operations-collector/integration_test/gce-testing-internal v0.0.0-20260130171200-8bbc62976af0 h1:QeKYB2SRm5fOk6l91p8kNd6XkDBk/nwaeWnTwwBqwYQ= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: run go mod tidy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
|
LGTM modulo some remaining nits |
Co-authored-by: Jeff Erbrecht <89024676+jefferbrecht@users.noreply.github.com>
c803629 to
f5abf99
Compare
Description
Configuring the
file_storageextension to be used asstoragein Otel Logging receivers.Some details :
systemd,filesandwindows_event_loglogging receiver./var/lib/google-cloud-ops-agent/opentelemetry-collector\file_storage/C:\ProgramData\Google\Cloud Operations\Ops Agent\run\file_storageRelated issue
b/469432672
How has this been tested?
Checklist: